# $Id: PKGBUILD 83176 2013-01-27 16:25:07Z pierre $
# Maintainer: Mark Rosenstand <mark@archlinux.org
# Contributor: Corrado Primier <cp663137@stud.polimi.it>

pkgname=pymad
pkgver=0.6
pkgrel=4
pkgdesc="Python interface to libmad."
arch=('i686' 'x86_64')
url="http://www.spacepants.org/src/pymad/"
license=('LGPL')
depends=('libmad' 'python2')
source=("http://www.spacepants.org/src/pymad/download/$pkgname-$pkgver.tar.gz")
md5sums=('a1405fb4b610348565c8d0e400c5ff18')

build() {
  cd $srcdir/$pkgname-$pkgver
  python2 config_unix.py --prefix=/usr
}

package() {
  cd $srcdir/$pkgname-$pkgver
  python2 setup.py install --root=$pkgdir
}
